<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/Citi.OTFPC.Resource.Domain" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/Citi.OTFPC.Resource.Domain" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="http://localhost:2055/Resource.svc?xsd=xsd4" namespace="http://schemas.datacontract.org/2004/07/System.Data.Objects.DataClasses" />
  <xs:import schemaLocation="http://localhost:2055/Resource.svc?xsd=xsd3" namespace="http://schemas.datacontract.org/2004/07/Citi.OTFPC.Resource.Domain.Utils" />
  <xs:complexType name="Resource">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q1="http://schemas.datacontract.org/2004/07/Citi.OTFPC.Resource.Domain.Utils" base="q1:GeneralAction">
        <xs:sequence>
          <xs:element minOccurs="0" name="Building" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="City" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="Country" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="EmployeeClass" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="Floor" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="FullName" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="GOC" nillable="true" type="tns:GOC" />
          <xs:element minOccurs="0" name="GOCId" nillable="true" type="xs:long" />
          <xs:element xmlns:q2="http://schemas.datacontract.org/2004/07/System.Data.Objects.DataClasses" minOccurs="0" name="GOCReference" nillable="true" type="q2:EntityReferenceOfGOC1y_SvgGV4" />
          <xs:element minOccurs="0" name="Geid" type="xs:int" />
          <xs:element minOccurs="0" name="Id" type="xs:long" />
          <xs:element minOccurs="0" name="JobFamily" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="ManagerGEID" type="xs:int" />
          <xs:element minOccurs="0" name="ResourceObservationType" nillable="true" type="tns:ResourceObservationType" />
          <xs:element minOccurs="0" name="ResourceObservationTypeId" nillable="true" type="xs:long" />
          <xs:element xmlns:q3="http://schemas.datacontract.org/2004/07/System.Data.Objects.DataClasses" minOccurs="0" name="ResourceObservationTypeReference" nillable="true" type="q3:EntityReferenceOfResourceObservationType1y_SvgGV4" />
          <xs:element minOccurs="0" name="SoeId" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="Status" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="WorkAdress1" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="WorkAdress2" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="WorkTelephone" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="ZipCode" nillable="true" type="xs:string" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="Resource" nillable="true" type="tns:Resource" />
  <xs:complexType name="GOC">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q4="http://schemas.datacontract.org/2004/07/Citi.OTFPC.Resource.Domain.Utils" base="q4:GeneralAction">
        <xs:sequence>
          <xs:element minOccurs="0" name="CorpCode" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="Country" nillable="true" type="tns:Country" />
          <xs:element minOccurs="0" name="CountryId" type="xs:long" />
          <xs:element xmlns:q5="http://schemas.datacontract.org/2004/07/System.Data.Objects.DataClasses" minOccurs="0" name="CountryReference" nillable="true" type="q5:EntityReferenceOfCountry1y_SvgGV4" />
          <xs:element minOccurs="0" name="ExpenseCode" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="FRSBu" nillable="true" type="tns:FRSBu" />
          <xs:element minOccurs="0" name="FRSBuId" type="xs:long" />
          <xs:element xmlns:q6="http://schemas.datacontract.org/2004/07/System.Data.Objects.DataClasses" minOccurs="0" name="FRSBuReference" nillable="true" type="q6:EntityReferenceOfFRSBu1y_SvgGV4" />
          <xs:element minOccurs="0" name="FRSOu" nillable="true" type="tns:FRSOu" />
          <xs:element minOccurs="0" name="FRSOuId" type="xs:long" />
          <xs:element xmlns:q7="http://schemas.datacontract.org/2004/07/System.Data.Objects.DataClasses" minOccurs="0" name="FRSOuReference" nillable="true" type="q7:EntityReferenceOfFRSOu1y_SvgGV4" />
          <xs:element minOccurs="0" name="Function" nillable="true" type="tns:Function" />
          <xs:element minOccurs="0" name="FunctionId" type="xs:long" />
          <xs:element xmlns:q8="http://schemas.datacontract.org/2004/07/System.Data.Objects.DataClasses" minOccurs="0" name="FunctionReference" nillable="true" type="q8:EntityReferenceOfFunction1y_SvgGV4" />
          <xs:element minOccurs="0" name="GOCAttribute" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="Id" type="xs:long" />
          <xs:element minOccurs="0" name="LastUpdate" type="xs:dateTime" />
          <xs:element minOccurs="0" name="Level" nillable="true" type="tns:Level" />
          <xs:element minOccurs="0" name="LevelId" type="xs:long" />
          <xs:element xmlns:q9="http://schemas.datacontract.org/2004/07/System.Data.Objects.DataClasses" minOccurs="0" name="LevelReference" nillable="true" type="q9:EntityReferenceOfLevel1y_SvgGV4" />
          <xs:element minOccurs="0" name="LocalCostCode" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="LongDescription" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="ManagedSegment" nillable="true" type="tns:ManagedSegment" />
          <xs:element minOccurs="0" name="ManagedSegmentId" type="xs:long" />
          <xs:element xmlns:q10="http://schemas.datacontract.org/2004/07/System.Data.Objects.DataClasses" minOccurs="0" name="ManagedSegmentReference" nillable="true" type="q10:EntityReferenceOfManagedSegment1y_SvgGV4" />
          <xs:element minOccurs="0" name="Manager" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="ReferenceDate" type="xs:dateTime" />
          <xs:element minOccurs="0" name="Resources" nillable="true" type="tns:ArrayOfResource" />
          <xs:element minOccurs="0" name="Rule" nillable="true" type="tns:Rule" />
          <xs:element minOccurs="0" name="RuleId" nillable="true" type="xs:long" />
          <xs:element xmlns:q11="http://schemas.datacontract.org/2004/07/System.Data.Objects.DataClasses" minOccurs="0" name="RuleReference" nillable="true" type="q11:EntityReferenceOfRule1y_SvgGV4" />
          <xs:element minOccurs="0" name="SID" nillable="true" type="tns:SID" />
          <xs:element minOccurs="0" name="SIDId" type="xs:long" />
          <xs:element xmlns:q12="http://schemas.datacontract.org/2004/07/System.Data.Objects.DataClasses" minOccurs="0" name="SIDReference" nillable="true" type="q12:EntityReferenceOfSID1y_SvgGV4" />
          <xs:element minOccurs="0" name="Status" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="UpdatedDate" type="xs:dateTime" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="GOC" nillable="true" type="tns:GOC" />
  <xs:complexType name="Country">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q13="http://schemas.datacontract.org/2004/07/Citi.OTFPC.Resource.Domain.Utils" base="q13:GeneralAction">
        <xs:sequence>
          <xs:element minOccurs="0" name="Abbreviation" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="GOCs" nillable="true" type="tns:ArrayOfGOC" />
          <xs:element minOccurs="0" name="Id" type="xs:long" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="Country" nillable="true" type="tns:Country" />
  <xs:complexType name="ArrayOfGOC">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="GOC" nillable="true" type="tns:GOC" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfGOC" nillable="true" type="tns:ArrayOfGOC" />
  <xs:complexType name="FRSBu">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q14="http://schemas.datacontract.org/2004/07/Citi.OTFPC.Resource.Domain.Utils" base="q14:GeneralAction">
        <xs:sequence>
          <xs:element minOccurs="0" name="Code" type="xs:long" />
          <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="GOCs" nillable="true" type="tns:ArrayOfGOC" />
          <xs:element minOccurs="0" name="Id" type="xs:long" />
          <xs:element minOccurs="0" name="LastUpdate" type="xs:dateTime" />
          <xs:element minOccurs="0" name="ReferenceDate" type="xs:dateTime" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="FRSBu" nillable="true" type="tns:FRSBu" />
  <xs:complexType name="FRSOu">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q15="http://schemas.datacontract.org/2004/07/Citi.OTFPC.Resource.Domain.Utils" base="q15:GeneralAction">
        <xs:sequence>
          <xs:element minOccurs="0" name="Code" type="xs:long" />
          <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="GOCs" nillable="true" type="tns:ArrayOfGOC" />
          <xs:element minOccurs="0" name="Id" type="xs:long" />
          <xs:element minOccurs="0" name="LastUpdate" type="xs:dateTime" />
          <xs:element minOccurs="0" name="ReferenceDate" type="xs:dateTime" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="FRSOu" nillable="true" type="tns:FRSOu" />
  <xs:complexType name="Function">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q16="http://schemas.datacontract.org/2004/07/Citi.OTFPC.Resource.Domain.Utils" base="q16:GeneralAction">
        <xs:sequence>
          <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="Definition" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="Function1" nillable="true" type="tns:ArrayOfFunction" />
          <xs:element minOccurs="0" name="Function2" nillable="true" type="tns:Function" />
          <xs:element xmlns:q17="http://schemas.datacontract.org/2004/07/System.Data.Objects.DataClasses" minOccurs="0" name="Function2Reference" nillable="true" type="q17:EntityReferenceOfFunction1y_SvgGV4" />
          <xs:element minOccurs="0" name="GOCs" nillable="true" type="tns:ArrayOfGOC" />
          <xs:element minOccurs="0" name="Id" type="xs:long" />
          <xs:element minOccurs="0" name="LastUpdate" type="xs:dateTime" />
          <xs:element minOccurs="0" name="ParentId" nillable="true" type="xs:long" />
          <xs:element minOccurs="0" name="ReferenceDate" type="xs:dateTime" />
          <xs:element minOccurs="0" name="Status" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="TreeLevel" type="xs:short" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="Function" nillable="true" type="tns:Function" />
  <xs:complexType name="ArrayOfFunction">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Function" nillable="true" type="tns:Function" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfFunction" nillable="true" type="tns:ArrayOfFunction" />
  <xs:complexType name="Level">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q18="http://schemas.datacontract.org/2004/07/Citi.OTFPC.Resource.Domain.Utils" base="q18:GeneralAction">
        <xs:sequence>
          <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="GOCs" nillable="true" type="tns:ArrayOfGOC" />
          <xs:element minOccurs="0" name="Id" type="xs:long" />
          <xs:element minOccurs="0" name="LastUpdate" type="xs:dateTime" />
          <xs:element minOccurs="0" name="ReferenceDate" type="xs:dateTime" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="Level" nillable="true" type="tns:Level" />
  <xs:complexType name="ManagedSegment">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q19="http://schemas.datacontract.org/2004/07/Citi.OTFPC.Resource.Domain.Utils" base="q19:GeneralAction">
        <xs:sequence>
          <xs:element minOccurs="0" name="Code" type="xs:long" />
          <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="GOCs" nillable="true" type="tns:ArrayOfGOC" />
          <xs:element minOccurs="0" name="Id" type="xs:long" />
          <xs:element minOccurs="0" name="LastUpdate" type="xs:dateTime" />
          <xs:element minOccurs="0" name="ManagedSegment1" nillable="true" type="tns:ArrayOfManagedSegment" />
          <xs:element minOccurs="0" name="ManagedSegment2" nillable="true" type="tns:ManagedSegment" />
          <xs:element xmlns:q20="http://schemas.datacontract.org/2004/07/System.Data.Objects.DataClasses" minOccurs="0" name="ManagedSegment2Reference" nillable="true" type="q20:EntityReferenceOfManagedSegment1y_SvgGV4" />
          <xs:element minOccurs="0" name="ParentId" nillable="true" type="xs:long" />
          <xs:element minOccurs="0" name="ReferenceDate" type="xs:dateTime" />
          <xs:element minOccurs="0" name="Status" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="TreeLevel" type="xs:long" />
          <xs:element minOccurs="0" name="UpdatedDate" type="xs:dateTime" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="ManagedSegment" nillable="true" type="tns:ManagedSegment" />
  <xs:complexType name="ArrayOfManagedSegment">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="ManagedSegment" nillable="true" type="tns:ManagedSegment" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfManagedSegment" nillable="true" type="tns:ArrayOfManagedSegment" />
  <xs:complexType name="ArrayOfResource">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Resource" nillable="true" type="tns:Resource" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfResource" nillable="true" type="tns:ArrayOfResource" />
  <xs:complexType name="Rule">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q21="http://schemas.datacontract.org/2004/07/Citi.OTFPC.Resource.Domain.Utils" base="q21:GeneralAction">
        <xs:sequence>
          <xs:element minOccurs="0" name="Active" type="xs:boolean" />
          <xs:element minOccurs="0" name="Exception" type="xs:boolean" />
          <xs:element minOccurs="0" name="GOCs" nillable="true" type="tns:ArrayOfGOC" />
          <xs:element minOccurs="0" name="Id" type="xs:long" />
          <xs:element minOccurs="0" name="LastUpdate" type="xs:dateTime" />
          <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="ReferenceDate" type="xs:dateTime" />
          <xs:element minOccurs="0" name="RuleConditions" nillable="true" type="tns:ArrayOfRuleCondition" />
          <xs:element minOccurs="0" name="RuleResults" nillable="true" type="tns:ArrayOfRuleResult" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="Rule" nillable="true" type="tns:Rule" />
  <xs:complexType name="ArrayOfRuleCondition">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="RuleCondition" nillable="true" type="tns:RuleCondition" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfRuleCondition" nillable="true" type="tns:ArrayOfRuleCondition" />
  <xs:complexType name="RuleCondition">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q22="http://schemas.datacontract.org/2004/07/Citi.OTFPC.Resource.Domain.Utils" base="q22:GeneralAction">
        <xs:sequence>
          <xs:element minOccurs="0" name="Id" type="xs:long" />
          <xs:element minOccurs="0" name="LastUpdate" type="xs:dateTime" />
          <xs:element minOccurs="0" name="Level" nillable="true" type="xs:long" />
          <xs:element minOccurs="0" name="ReferenceDate" type="xs:dateTime" />
          <xs:element minOccurs="0" name="Rule" nillable="true" type="tns:Rule" />
          <xs:element minOccurs="0" name="RuleId" nillable="true" type="xs:long" />
          <xs:element xmlns:q23="http://schemas.datacontract.org/2004/07/System.Data.Objects.DataClasses" minOccurs="0" name="RuleReference" nillable="true" type="q23:EntityReferenceOfRule1y_SvgGV4" />
          <xs:element minOccurs="0" name="Type" nillable="true" type="xs:short" />
          <xs:element minOccurs="0" name="Value" nillable="true" type="xs:string" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="RuleCondition" nillable="true" type="tns:RuleCondition" />
  <xs:complexType name="ArrayOfRuleResult">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="RuleResult" nillable="true" type="tns:RuleResult" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfRuleResult" nillable="true" type="tns:ArrayOfRuleResult" />
  <xs:complexType name="RuleResult">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q24="http://schemas.datacontract.org/2004/07/Citi.OTFPC.Resource.Domain.Utils" base="q24:GeneralAction">
        <xs:sequence>
          <xs:element minOccurs="0" name="Id" type="xs:long" />
          <xs:element minOccurs="0" name="Rule" nillable="true" type="tns:Rule" />
          <xs:element minOccurs="0" name="RuleId" type="xs:long" />
          <xs:element xmlns:q25="http://schemas.datacontract.org/2004/07/System.Data.Objects.DataClasses" minOccurs="0" name="RuleReference" nillable="true" type="q25:EntityReferenceOfRule1y_SvgGV4" />
          <xs:element minOccurs="0" name="TypeRuleResult" nillable="true" type="tns:TypeRuleResult" />
          <xs:element minOccurs="0" name="TypeRuleResultId" type="xs:long" />
          <xs:element xmlns:q26="http://schemas.datacontract.org/2004/07/System.Data.Objects.DataClasses" minOccurs="0" name="TypeRuleResultReference" nillable="true" type="q26:EntityReferenceOfTypeRuleResult1y_SvgGV4" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="RuleResult" nillable="true" type="tns:RuleResult" />
  <xs:complexType name="TypeRuleResult">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q27="http://schemas.datacontract.org/2004/07/Citi.OTFPC.Resource.Domain.Utils" base="q27:GeneralAction">
        <xs:sequence>
          <xs:element minOccurs="0" name="Active" type="xs:boolean" />
          <xs:element minOccurs="0" name="Id" type="xs:long" />
          <xs:element minOccurs="0" name="LastUpdate" type="xs:dateTime" />
          <xs:element minOccurs="0" name="ReferenceDate" type="xs:dateTime" />
          <xs:element minOccurs="0" name="RuleResults" nillable="true" type="tns:ArrayOfRuleResult" />
          <xs:element minOccurs="0" name="Type" type="xs:long" />
          <xs:element minOccurs="0" name="Value" nillable="true" type="xs:string" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="TypeRuleResult" nillable="true" type="tns:TypeRuleResult" />
  <xs:complexType name="SID">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q28="http://schemas.datacontract.org/2004/07/Citi.OTFPC.Resource.Domain.Utils" base="q28:GeneralAction">
        <xs:sequence>
          <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="GOCs" nillable="true" type="tns:ArrayOfGOC" />
          <xs:element minOccurs="0" name="Id" type="xs:long" />
          <xs:element minOccurs="0" name="LastUpdate" type="xs:dateTime" />
          <xs:element minOccurs="0" name="ReferenceDate" type="xs:dateTime" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="SID" nillable="true" type="tns:SID" />
  <xs:complexType name="ResourceObservationType">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q29="http://schemas.datacontract.org/2004/07/Citi.OTFPC.Resource.Domain.Utils" base="q29:GeneralAction">
        <xs:sequence>
          <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="Id" type="xs:long" />
          <xs:element minOccurs="0" name="Resources" nillable="true" type="tns:ArrayOfResource" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="ResourceObservationType" nillable="true" type="tns:ResourceObservationType" />
</xs:schema>